<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.2.0/crypto-js.min.js"></script>
</head>
<body>
<input type="text" id="info">
<button type="submit" id="btn1">base64提交</button>
<button type="submit" id="btn2">自定义函数加密</button>
<button type="submit" id="btn3">代码混淆</button>
<button type="submit" id="btn4">补环境</button>
<button type="submit" id="btn5">crypto-js加密</button>
<script>
    let info = document.querySelector("#info");
    let btn1 = document.querySelector("#btn1");
    let btn2 = document.querySelector("#btn2");
    let btn3 = document.querySelector("#btn3");
    let btn4 = document.querySelector("#btn4");
    let btn5 = document.querySelector("#btn5");

(function(_0x2147f9,_0x105ccd){var _0x31ce00=_0x544a,_0x449d29=_0x2147f9();while(!![]){try{var _0xb540a9=parseInt(_0x31ce00(0x161))/0x1+-parseInt(_0x31ce00(0x15c))/0x2+parseInt(_0x31ce00(0x15e))/0x3*(parseInt(_0x31ce00(0x15b))/0x4)+-parseInt(_0x31ce00(0x160))/0x5*(-parseInt(_0x31ce00(0x15a))/0x6)+parseInt(_0x31ce00(0x158))/0x7+parseInt(_0x31ce00(0x15d))/0x8+-parseInt(_0x31ce00(0x15f))/0x9;if(_0xb540a9===_0x105ccd)break;else _0x449d29['push'](_0x449d29['shift']());}catch(_0x1200ab){_0x449d29['push'](_0x449d29['shift']());}}}(_0x118f,0xc7408));function _0x118f(){var _0x3a4297=['20335410HAgskU','5MdpDzP','755622AHDzyW','4412289ESAFja','Hello\x20World!','6838338OiecsX','85832EziwFp','1446876yYXyLx','5208880sNRmCt','87fizrfd'];_0x118f=function(){return _0x3a4297;};return _0x118f();}function _0x544a(_0x4aebc0,_0x86efa7){var _0x118fc0=_0x118f();return _0x544a=function(_0x544ac8,_0x48f2da){_0x544ac8=_0x544ac8-0x158;var _0x44b13d=_0x118fc0[_0x544ac8];return _0x44b13d;},_0x544a(_0x4aebc0,_0x86efa7);}function sayHello(){var _0x53b270=_0x544a;return _0x53b270(0x159);}


    btn1.onclick = function(){
        let info_base64 = window.btoa(info.value)
        axios.get("https://httpbin.org/get",
            {
                params: {
                    ID:123,
                    info: info_base64
                }
            }
        )
        .then(function (response){
            console.log(response)
        })
        .catch(function (err) {
            console.log(err)
        })
    }
    btn2.onclick = function(){
        let info_base64 = window.btoa(info.value)
        axios.get("https://httpbin.org/get",
            {
                params: {
                    ID:123,
                    info: info.value
                }
            }
        )
        .then(function (response){
            console.log(response)
        })
        .catch(function (err) {
            console.log(err)
        })
    }
    btn3.onclick = function(){
        axios.get("https://httpbin.org/get",
            {
                params: {
                    ID:123,
                    info: sayHello()+info.value
                }
        .then(function (response){
            console.log(response)
        })
        .catch(function (err) {
            console.log(err)
        })
    }

(function (_0x3b07f9, _0x1efa28) {
    const _0x1757d2 = _0x4523;
    const _0x4cc1d0 = _0x3b07f9();
    while (!![]) {
        try {
            const _0x5102bc = parseInt(_0x1757d2(0x1ef)) / 0x1 + -parseInt(_0x1757d2(0x1f4)) / 0x2 * (parseInt(_0x1757d2(0x1f3)) / 0x3) + parseInt(_0x1757d2(0x1f1)) / 0x4 + parseInt(_0x1757d2(0x1f7)) / 0x5 * (-parseInt(_0x1757d2(0x1f6)) / 0x6) + -parseInt(_0x1757d2(0x1f0)) / 0x7 + -parseInt(_0x1757d2(0x1f2)) / 0x8 + -parseInt(_0x1757d2(0x1f8)) / 0x9 * (-parseInt(_0x1757d2(0x1f5)) / 0xa);
            if (_0x5102bc === _0x1efa28) {
                break;
            } else {
                _0x4cc1d0['push'](_0x4cc1d0['shift']());
            }
        } catch (_0x25cc3c) {
            _0x4cc1d0['push'](_0x4cc1d0['shift']());
        }
    }
}(_0x4287, 0xe220b));
function _0x4523(_0x359013, _0x1131b1) {
    const _0x428780 = _0x4287();
    _0x4523 = function (_0x452392, _0x46c357) {
        _0x452392 = _0x452392 - 0x1ee;
        let _0x4dd32a = _0x428780[_0x452392];
        return _0x4dd32a;
    };
    return _0x4523(_0x359013, _0x1131b1);
}
function sayHello(_0xf0264b) {
    const _0x5e4d0a = _0x4523;
    let _0x28002e = _0xf0264b;
    return _0x5e4d0a(0x1ee) + _0xf0264b;
}
function _0x4287() {
    const _0x198093 = [
        '10623963iyeEpq',
        '1701280atUeyf',
        '6647176dHtvEJ',
        '85548KuXtSn',
        '88DbSSTz',
        '2040190NemMIj',
        '19824Kwvctu',
        '2435wjcFci',
        '171wSjMjg',
        'helloword',
        '1836896LrYOkE'
    ];
    _0x4287 = function () {
        return _0x198093;
    };
    return _0x4287();
}
btn4.onclick = function(){
        axios.get("https://httpbin.org/get",
            {
                params: {
                    ID:123,
                    info: sayHello(info.value)
                }
            }
        )
        .then(function (response){
            console.log(response)
        })
        .catch(function (err) {
            console.log(err)
        })
    }

    var key = "123456"


    // Encrypt
    var ciphertext = CryptoJS.AES.encrypt(key, 'secret key 123').toString();

    // Decrypt
    var bytes  = CryptoJS.AES.decrypt(ciphertext, 'secret key 123');
    var originalText = bytes.toString(CryptoJS.enc.Utf8);

    console.log(originalText); // 'my message'

    btn5.onclick = function(){
        axios.get("https://httpbin.org/get",
            {
                params: {
                    ID:123,
                    info: ciphertext
                }
            }
        )
        .then(function (response){
            console.log(response)
        })
        .catch(function (err) {
            console.log(err)
        })
    }
</script>
</body>
</html>